<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
<div id="root"></div>
<script src="../../javascript/react.js"></script>
<script src="../../javascript/react-dom.js"></script>
<script src="../../javascript/babel.js"></script>
<script type="text/babel">
    /*
    * JSX的书写规范 ；
    *   1.JSX结构中只能返回一个根元素
    *   2.JSX的外层通常包裹一个小括号，将整个JSX当做一个整体
    *   3.JSX中标签可以是单标签和双标签(单标签必须以 / 自闭合)
    * */
    class App extends React.Component {
        constructor(props) {
            super(props)
        }

        render() {
            return(
                <div className="app">
                    <input/>
                </div>
            )
        }
    }

    const root = ReactDOM.createRoot(document.querySelector("#root"))
    root.render(<App/>)
</script>
</body>

</html>
